/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2024-03-23
 * Time: 13:56
 */
public class Test {

    public static void main(String[] args) {
        SingleLinkedList list = new SingleLinkedList();
        list.addFirst(1);
        list.addLast(2);
        list.addLast(2);
        list.addLast(2);
        list.display();
        list.remove(2);
        list.display();
        list.removeAllKey(2);
        list.display();
    }


    public static void main1(String[] args) {
        SingleLinkedList list = new SingleLinkedList();
/*        list.addFirst(1);
        list.addFirst(2);
        list.display();*/
        list.addLast(99);
        list.addLast(99);
        list.addLast(99);
        list.display();
        list.addIndex(1, 111);
        list.display();
//        System.out.println("========");
//        System.out.println(list.contains(0));
    }
}
